package com.edeweiss.community.services.servicesImp;

import com.edeweiss.community.dao.ReportDao;
import com.edeweiss.community.dao.daoImp.ReportDaoImpl;
import com.edeweiss.community.domain.Message;
import com.edeweiss.community.domain.Report;
import com.edeweiss.community.services.ReportService;

import java.util.List;

public class ReportServiceImpl implements ReportService {
    private ReportDao reportDao = new ReportDaoImpl();
    @Override
    public int report(Report report) {
        return reportDao.report(report);
    }

    @Override
    public List<Report> findAll() {
        return reportDao.findAll();
    }

    @Override
    public int answer(Message m,int rid) {
        return reportDao.answer(m,rid);
    }
}
